package com.googlecode.vanaraha.tool
import com.googlecode.vanaraha.data.{DuplicateCheckSummary, DuplicateSet}
import com.googlecode.vanaraha.utils.PreferenceStore
trait DuplicateFinderTrait {
	def name: String
	def run(store: PreferenceStore, files: Array[String], feedBack: ProgressFeedBack): (DuplicateCheckSummary, Array[DuplicateSet])
}

trait ProgressFeedBack{
  def updateProgress(msg: String, workDone: Int){
    updateMsg(msg)
    worked(workDone)
  }
  def |>(msg: String, workDone: Int) = updateProgress(msg, workDone)
  def updateMsg(msg: String)
  def worked(value: Int)
}
